package com;

import com.opensymphony.xwork2.ActionSupport;

public class Hello extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String msg;
	public String getMsg(){return msg;}
	public void setMsg(String msg){this.msg = msg;}
	
	public String execute(){
		System.out.println("execute() is called!");
		if(msg.equals(""))
			return "error";
		else
			return "successx";
	}
	
	public String login(){
		System.out.println("login() is called!");
		if(msg.equals(""))
			return "error";
		else
			return "login";
	}
	public String regist(){
		System.out.println("regist() is called!");
		if(msg.equals(""))
			return "error";
		else
			return "regist";
	}
}
